package one.stand.mapper;

import one.stand.entity.WxNoticeEntity;
import one.stand.model.FinanceModel;
import one.stand.model.OrderinfoModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public interface OrderinfoMapper {
    int deleteByPrimaryKey(Integer orderInfoId);

    int insertSelective(OrderinfoModel record);

    OrderinfoModel selectByPrimaryKey(Integer orderInfoId);

    int updateByPrimaryKeySelective(OrderinfoModel record);

    int updateOrderState(OrderinfoModel record);

    int updateOrderAddress(@Param("addressId") Integer addressId, @Param("ids") String[] ids);

    List<OrderinfoModel> selectOrderInfoList(Integer ordersId);

    List<OrderinfoModel> selectGoodsInfo(OrderinfoModel record);

    List<OrderinfoModel> selectGoodInfoList(String[] ids);

    Integer selectGoodInfoMoney(String[] ids);

    WxNoticeEntity selectOrderBackInfo(OrderinfoModel record);

    Integer selectGoodInfoGroupByMoney(Integer ordersId);

    List<OrderinfoModel> getOrderInfo(OrderinfoModel record);

    List<OrderinfoModel> getPayOrderInfo(OrderinfoModel record);

    List<FinanceModel> selectFinanceMall(FinanceModel model);

    Integer selectFinanceMallMoney(FinanceModel model);

    List<FinanceModel> selectFinanceDeal(FinanceModel model);

    Integer selectFinanceRefund(FinanceModel model);

    List<FinanceModel> selectOrderNumMySort(FinanceModel record);

    List<FinanceModel> selectOrderNumSort(FinanceModel record);

    List<FinanceModel> selectTurnoverRateMySort(FinanceModel record);

    List<FinanceModel> selectTurnoverRateSort(FinanceModel record);

    List<Map<String, Object>> turnoverRate(Integer companyId);

    List<OrderinfoModel> selectOrderInfoNum(Integer ordersId);

    List<OrderinfoModel> selectComanyRoyalty(Integer ordersId);

    List<OrderinfoModel> selectComanyRoyaltyNew(Integer ordersId);

    OrderinfoModel getForwardUserId(OrderinfoModel record);

}